<?php include '../view/heading.php'; ?>
<div id="Inhalt">
    <h2>Pinnwand - alle Kommentare</h2>
    <?php if (count($entries) == 0) : ?>
        <p>Wir haben derzeit keine Einträge.</p>
    <?php else: ?>
        <table class="hovertable">
        <tr>
            <th>Eintag von</th>
            <th>Name</th>
            <th>Pinnwand</th>
        </tr>
            <?php foreach ($entries as $entry) : ?>
                <tr>
                    <td>
                        <?php echo $entry['eintrag_von']; ?>
                    </td>
                <td>
                        <?php echo $entry['nickname']; ?>
                    </td>
                    <td>
                        <?php echo $entry['pinnwand_eintrag']; ?>
                    </td>
                </tr>
            <?php endforeach; ?>
                <tr>
                    <td colspan="3">
                        <a style="float: left" href="?page=<?php echo $newNextPage-1; ?>"><<</a>
                        <span style="margin-left: 18em;">Seite <?php echo $newNextPage+1;?> / <?php echo $gesamtPages;?></span>
                        <a style="float: right" href="?page=<?php echo $newNextPage+1; ?>">>></a>                        
                    </td>
                </tr>
        </table>
    <?php endif; ?>
   
</div>
<?php include '../view/footing.php'; ?>

